//
//  CustomCameraController.h
//  OnionHome
//
//  Created by fengjie on 2019/9/30.
//  Copyright © 2019 FengJie. All rights reserved.
//自定义相机

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef void(^retunImage)(UIImage * image);
typedef void(^dismiss)(void);

@interface CustomCameraController : UIViewController

@property (nonatomic, strong) AVCaptureSession* session;
@property (nonatomic, strong) AVCaptureDeviceInput* videoInput;
@property (nonatomic, strong) AVCaptureStillImageOutput* stillImageOutput;
@property (nonatomic, strong) AVCaptureVideoPreviewLayer* previewLayer;

/**是否从自定义相册页面进来*/
@property (nonatomic,assign)BOOL isPhotos;
/**拍照完成，带回图片*/
@property (nonatomic,copy)retunImage rentunBlock;
/**点击取消回调*/
@property (nonatomic,copy)dismiss dismissView;
@end

NS_ASSUME_NONNULL_END
